package com.csist.service.bo.impl;

import com.csist.mapper.bo.SpecificationClassInfoBoMapper;
import com.csist.pojo.bo.SpecificationClassInfoBo;
import com.csist.service.bo.SpecificationClassInfoBoService;
import com.csist.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @ClassName SpecificationClassInfoBoServiceImpl
 * @Description 【自行描述】
 * @Author cn
 * @Date 2024/6/26 17:28
 * @Version 1.0
 */
public class SpecificationClassInfoBoServiceImpl implements SpecificationClassInfoBoService {
    private SqlSession sqlSession;
    private SpecificationClassInfoBoMapper specificationClassInfoBoMapper;

    public SpecificationClassInfoBoServiceImpl() {
        sqlSession = SqlSessionUtil.openSession();
        specificationClassInfoBoMapper = sqlSession.getMapper(SpecificationClassInfoBoMapper.class);
    }

    @Override
    public List<SpecificationClassInfoBo> selectAllSpecificationClassInfo() {
        return specificationClassInfoBoMapper.selectAllSpecificationClassInfo();
    }

    @Override
    public SpecificationClassInfoBo getSpecificationClassInfoBoById(int id) {
        return specificationClassInfoBoMapper.getSpecificationClassInfoBoById(id);
    }

}
